package com.sitia.jd.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sitia.common.annotation.Excel;
import com.sitia.common.core.domain.BaseEntity;

/**
 * 文件附件对象 mx_file
 * 
 * @author sitia
 * @date 2024-03-15
 */
public class MxFile extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 阿里云公网地址 */
    @Excel(name = "阿里云公网地址")
    private String url;

    /** 文件路径前缀 */
    @Excel(name = "文件路径前缀")
    private String prePath;

    /** 文件路径 */
    @Excel(name = "文件路径")
    private String path;

    /** 源文件名称 */
    @Excel(name = "源文件名称")
    private String originalFilename;

    /** 文件名称 */
    @Excel(name = "文件名称")
    private String filename;

    /** 存储文件大小，单位：字节 */
    @Excel(name = "存储文件大小，单位：字节")
    private Long fileSize;

    /** 文件类型 */
    @Excel(name = "文件类型")
    private String fileType;

    /** 文件类型 */
    @Excel(name = "文件类型")
    private String contentType;

    /** 标记文件是否启用或有效 */
    @Excel(name = "标记文件是否启用或有效")
    private String isEnabled;

    /** 业务类型 */
    @Excel(name = "业务类型")
    private String busiType;

    /** 扩展字段1 */
    @Excel(name = "扩展字段1")
    private String ext1;

    /** 扩展字段2 */
    @Excel(name = "扩展字段2")
    private String ext2;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setPrePath(String prePath) 
    {
        this.prePath = prePath;
    }

    public String getPrePath() 
    {
        return prePath;
    }
    public void setPath(String path) 
    {
        this.path = path;
    }

    public String getPath() 
    {
        return path;
    }
    public void setOriginalFilename(String originalFilename) 
    {
        this.originalFilename = originalFilename;
    }

    public String getOriginalFilename() 
    {
        return originalFilename;
    }
    public void setFilename(String filename) 
    {
        this.filename = filename;
    }

    public String getFilename() 
    {
        return filename;
    }
    public void setFileSize(Long fileSize) 
    {
        this.fileSize = fileSize;
    }

    public Long getFileSize() 
    {
        return fileSize;
    }
    public void setFileType(String fileType) 
    {
        this.fileType = fileType;
    }

    public String getFileType() 
    {
        return fileType;
    }
    public void setContentType(String contentType) 
    {
        this.contentType = contentType;
    }

    public String getContentType() 
    {
        return contentType;
    }
    public void setIsEnabled(String isEnabled) 
    {
        this.isEnabled = isEnabled;
    }

    public String getIsEnabled() 
    {
        return isEnabled;
    }
    public void setBusiType(String busiType) 
    {
        this.busiType = busiType;
    }

    public String getBusiType() 
    {
        return busiType;
    }
    public void setExt1(String ext1) 
    {
        this.ext1 = ext1;
    }

    public String getExt1() 
    {
        return ext1;
    }
    public void setExt2(String ext2) 
    {
        this.ext2 = ext2;
    }

    public String getExt2() 
    {
        return ext2;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("url", getUrl())
            .append("prePath", getPrePath())
            .append("path", getPath())
            .append("originalFilename", getOriginalFilename())
            .append("filename", getFilename())
            .append("fileSize", getFileSize())
            .append("fileType", getFileType())
            .append("contentType", getContentType())
            .append("isEnabled", getIsEnabled())
            .append("busiType", getBusiType())
            .append("remark", getRemark())
            .append("ext1", getExt1())
            .append("ext2", getExt2())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
